<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录页</title>
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/assets/css/login.css">
</head>

<body>
    <div class="loginImg layui-main">
        <img src="/assets/images/logo.png" alt="">
    </div>
    <div class="loginBox">
        <div class="title"></div>
        <!-- 登录页 -->
        <form class="layui-form" action=""  id="form-login">
            <div class="layui-form-item">
                <i class="layui-icon layui-icon-username"></i>
                <input type="text" name="username" value="lei" required lay-verify="required|username" id="name-login" placeholder="请输入用户名" autocomplete="off"
                    class="layui-input">
            </div>
            <div class="layui-form-item">
                <i class="layui-icon layui-icon-password"></i>
                <input type="password" name="password" value="1234567" required lay-verify="required|pass" id="pwd-login" placeholder="请输入密码" autocomplete="off"
                    class="layui-input">
            </div>
            <div class="layui-form-item">
                <button class="layui-btn layui-btn-normal login-btn"  id="bnt-login" lay-submit lay-filter="formDemo">登录</button>
            </div>
            <div class="layui-form-item login-a-box">
                <a href="javascript:;" id="link-reg">去注册</a>
            </div>
        </form>
        <!-- 注册页 -->
        <form class="layui-form" action="" id="form-reg" style="display: none;">
            <div class="layui-form-item">
                <i class="layui-icon layui-icon-username"></i>
                <input type="text" name="username" required lay-verify="required|username" id="name-reg" placeholder="请输入用户名" autocomplete="off"
                    class="layui-input">
            </div>
            <div class="layui-form-item">
                <i class="layui-icon layui-icon-password"></i>
                <input type="password" name="password" required lay-verify="required|pass" id="pwd-reg" placeholder="请输入密码" autocomplete="off"
                    class="layui-input">
            </div>
            <div class="layui-form-item">
                <i class="layui-icon layui-icon-password"></i>
                <input type="password" name="password" required lay-verify="required|pass|pwd" placeholder="确认密码" autocomplete="off"
                    class="layui-input">
            </div>
            <div class="layui-form-item">
                <button class="layui-btn layui-btn-normal login-btn" id="bnt-reg" lay-submit lay-filter="formDemo">注册</button>
            </div>
            <div class="layui-form-item login-a-box">
                <a href="javascript:;" id="link-login">去登录</a>
            </div>
        </form>
    </div>
    
    <script src="/assets/lib/layui/layui.all.js"></script>
    <script src="/assets/lib/jquery.js"></script>
    <script src="/assets/js/baseApi.js"></script>
    <script src="/assets/js/logo.js"></script>
</body>

</html>